import http from '@/base/http';

/**
 * userInfo
 */
enum IM_SDK {
  UserSig = '/im/getUserSig',
  searchFriend = '/friend/search',
  InitUser = '/im/initUser',
}

export function getUserSig(): Promise<any> {
  return http.get(IM_SDK.UserSig);
}

export function searchFriend(data: unknown): Promise<any> {
  return http.get(IM_SDK.searchFriend, data);
}

// IM init user
export function initUser(data: unknown): Promise<any> {
  return http.post(IM_SDK.InitUser, data);
}
